<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QCPColorMapData Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_q_c_p_color_map_data-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QCPColorMapData Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Holds the two-dimensional data of a <a class="el" href="class_q_c_p_color_map.html" title="A plottable representing a two-dimensional color map in a plot. ">QCPColorMap</a> plottable.  
 <a href="class_q_c_p_color_map_data.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aac9d8eb81e18e240d89d56c01933fd23"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#aac9d8eb81e18e240d89d56c01933fd23">QCPColorMapData</a> (int keySize, int valueSize, const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;keyRange, const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;valueRange)</td></tr>
<tr class="separator:aac9d8eb81e18e240d89d56c01933fd23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f2145d86473263494abb9bf1de20436"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#a7f2145d86473263494abb9bf1de20436">QCPColorMapData</a> (const <a class="el" href="class_q_c_p_color_map_data.html">QCPColorMapData</a> &amp;other)</td></tr>
<tr class="separator:a7f2145d86473263494abb9bf1de20436"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdf4dd1b2f5714234fe84709b85c2a8d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_q_c_p_color_map_data.html">QCPColorMapData</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#afdf4dd1b2f5714234fe84709b85c2a8d">operator=</a> (const <a class="el" href="class_q_c_p_color_map_data.html">QCPColorMapData</a> &amp;other)</td></tr>
<tr class="separator:afdf4dd1b2f5714234fe84709b85c2a8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbda4d28de97aedce1e6e6f008a0a1f7"><td class="memItemLeft" align="right" valign="top"><a id="abbda4d28de97aedce1e6e6f008a0a1f7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>keySize</b> () const</td></tr>
<tr class="separator:abbda4d28de97aedce1e6e6f008a0a1f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8510cafea24645bbb62b5e0bfc43209f"><td class="memItemLeft" align="right" valign="top"><a id="a8510cafea24645bbb62b5e0bfc43209f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>valueSize</b> () const</td></tr>
<tr class="separator:a8510cafea24645bbb62b5e0bfc43209f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e43abd20a77b922b7cecfc69bf4dad7"><td class="memItemLeft" align="right" valign="top"><a id="a1e43abd20a77b922b7cecfc69bf4dad7"></a>
<a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><b>keyRange</b> () const</td></tr>
<tr class="separator:a1e43abd20a77b922b7cecfc69bf4dad7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a818e4e384aa4e5fad69ac603924394d3"><td class="memItemLeft" align="right" valign="top"><a id="a818e4e384aa4e5fad69ac603924394d3"></a>
<a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><b>valueRange</b> () const</td></tr>
<tr class="separator:a818e4e384aa4e5fad69ac603924394d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7620248272c5ddd9a3f877f07179f6d"><td class="memItemLeft" align="right" valign="top"><a id="ab7620248272c5ddd9a3f877f07179f6d"></a>
<a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><b>dataBounds</b> () const</td></tr>
<tr class="separator:ab7620248272c5ddd9a3f877f07179f6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c33807b008cdb9e1394245c294c0eaf"><td class="memItemLeft" align="right" valign="top"><a id="a2c33807b008cdb9e1394245c294c0eaf"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>data</b> (double key, double value)</td></tr>
<tr class="separator:a2c33807b008cdb9e1394245c294c0eaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af51ecd21f347adbf87b4cce4e1f5cbd6"><td class="memItemLeft" align="right" valign="top"><a id="af51ecd21f347adbf87b4cce4e1f5cbd6"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>cell</b> (int keyIndex, int valueIndex)</td></tr>
<tr class="separator:af51ecd21f347adbf87b4cce4e1f5cbd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d9ff35c299d0478b682bfbcdd9c097e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a> (int keySize, int valueSize)</td></tr>
<tr class="separator:a0d9ff35c299d0478b682bfbcdd9c097e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7ef70e383aface34b44dbde49234b6b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#ac7ef70e383aface34b44dbde49234b6b">setKeySize</a> (int keySize)</td></tr>
<tr class="separator:ac7ef70e383aface34b44dbde49234b6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0893c9e3914513048b45e3429ffd16f2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#a0893c9e3914513048b45e3429ffd16f2">setValueSize</a> (int valueSize)</td></tr>
<tr class="separator:a0893c9e3914513048b45e3429ffd16f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad9c1c7c703c1339489fc730517c83d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#aad9c1c7c703c1339489fc730517c83d4">setRange</a> (const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;keyRange, const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;valueRange)</td></tr>
<tr class="separator:aad9c1c7c703c1339489fc730517c83d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0738c485f3c9df9ea1241b7a8bb6a86e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#a0738c485f3c9df9ea1241b7a8bb6a86e">setKeyRange</a> (const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;keyRange)</td></tr>
<tr class="separator:a0738c485f3c9df9ea1241b7a8bb6a86e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada1b2680ba96a5f4175b6d341cf75d23"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#ada1b2680ba96a5f4175b6d341cf75d23">setValueRange</a> (const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;valueRange)</td></tr>
<tr class="separator:ada1b2680ba96a5f4175b6d341cf75d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd2083ccfd6987ec94aa7ef8e91ca39a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#afd2083ccfd6987ec94aa7ef8e91ca39a">setData</a> (double key, double value, double z)</td></tr>
<tr class="separator:afd2083ccfd6987ec94aa7ef8e91ca39a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e75eaf8746596319032a93f3d2d0683"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#a8e75eaf8746596319032a93f3d2d0683">setCell</a> (int keyIndex, int valueIndex, double z)</td></tr>
<tr class="separator:a8e75eaf8746596319032a93f3d2d0683"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab235ade8a4d64bd3adb26a99b3dd57ee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#ab235ade8a4d64bd3adb26a99b3dd57ee">recalculateDataBounds</a> ()</td></tr>
<tr class="separator:ab235ade8a4d64bd3adb26a99b3dd57ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9910ba830e96955bd5c8e5bef1e77ef3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#a9910ba830e96955bd5c8e5bef1e77ef3">clear</a> ()</td></tr>
<tr class="separator:a9910ba830e96955bd5c8e5bef1e77ef3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a350f783260eb9b5de5c7b5e0d5d3e3c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#a350f783260eb9b5de5c7b5e0d5d3e3c2">fill</a> (double z)</td></tr>
<tr class="separator:a350f783260eb9b5de5c7b5e0d5d3e3c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea88cc75a76ca571acf29b2ba8ac970d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#aea88cc75a76ca571acf29b2ba8ac970d">isEmpty</a> () const</td></tr>
<tr class="separator:aea88cc75a76ca571acf29b2ba8ac970d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca5b29e0ca2f299c9060fc6e1f74d0c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#aca5b29e0ca2f299c9060fc6e1f74d0c8">coordToCell</a> (double key, double value, int *keyIndex, int *valueIndex) const</td></tr>
<tr class="separator:aca5b29e0ca2f299c9060fc6e1f74d0c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1a36385c78ab624cd617065602408b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_c_p_color_map_data.html#af1a36385c78ab624cd617065602408b6">cellToCoord</a> (int keyIndex, int valueIndex, double *key, double *value) const</td></tr>
<tr class="separator:af1a36385c78ab624cd617065602408b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a354e06462023340fbc03894b22499f6d"><td class="memItemLeft" align="right" valign="top"><a id="a354e06462023340fbc03894b22499f6d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mKeySize</b></td></tr>
<tr class="separator:a354e06462023340fbc03894b22499f6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8ee9093632a59f55eb4fc06579ed256"><td class="memItemLeft" align="right" valign="top"><a id="ae8ee9093632a59f55eb4fc06579ed256"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mValueSize</b></td></tr>
<tr class="separator:ae8ee9093632a59f55eb4fc06579ed256"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaaafd0d7d0f153dbd152f3daf34254ee"><td class="memItemLeft" align="right" valign="top"><a id="aaaafd0d7d0f153dbd152f3daf34254ee"></a>
<a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mKeyRange</b></td></tr>
<tr class="separator:aaaafd0d7d0f153dbd152f3daf34254ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a225bb96f10c1a27b51ae59249477dbef"><td class="memItemLeft" align="right" valign="top"><a id="a225bb96f10c1a27b51ae59249477dbef"></a>
<a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mValueRange</b></td></tr>
<tr class="separator:a225bb96f10c1a27b51ae59249477dbef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10e91aa89ed05bd177b1f81e07b465b8"><td class="memItemLeft" align="right" valign="top"><a id="a10e91aa89ed05bd177b1f81e07b465b8"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsEmpty</b></td></tr>
<tr class="separator:a10e91aa89ed05bd177b1f81e07b465b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1682862022f575191351c9825187d39"><td class="memItemLeft" align="right" valign="top"><a id="ac1682862022f575191351c9825187d39"></a>
double *&#160;</td><td class="memItemRight" valign="bottom"><b>mData</b></td></tr>
<tr class="separator:ac1682862022f575191351c9825187d39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1798b3dcc0a27091d196bfd156dcb3f2"><td class="memItemLeft" align="right" valign="top"><a id="a1798b3dcc0a27091d196bfd156dcb3f2"></a>
<a class="el" href="class_q_c_p_range.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mDataBounds</b></td></tr>
<tr class="separator:a1798b3dcc0a27091d196bfd156dcb3f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3cc682da2ac14e5acdbc05cf4d3d93b"><td class="memItemLeft" align="right" valign="top"><a id="ad3cc682da2ac14e5acdbc05cf4d3d93b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mDataModified</b></td></tr>
<tr class="separator:ad3cc682da2ac14e5acdbc05cf4d3d93b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:afa9d9eab63af3e6f20f882c8d7cc9f20"><td class="memItemLeft" align="right" valign="top"><a id="afa9d9eab63af3e6f20f882c8d7cc9f20"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>QCPColorMap</b></td></tr>
<tr class="separator:afa9d9eab63af3e6f20f882c8d7cc9f20"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Holds the two-dimensional data of a <a class="el" href="class_q_c_p_color_map.html" title="A plottable representing a two-dimensional color map in a plot. ">QCPColorMap</a> plottable. </p>
<p>This class is a data storage for <a class="el" href="class_q_c_p_color_map.html">QCPColorMap</a>. It holds a two-dimensional array, which <a class="el" href="class_q_c_p_color_map.html">QCPColorMap</a> then displays as a 2D image in the plot, where the array values are represented by a color, depending on the value.</p>
<p>The size of the array can be controlled via <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a> (or <a class="el" href="class_q_c_p_color_map_data.html#ac7ef70e383aface34b44dbde49234b6b">setKeySize</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0893c9e3914513048b45e3429ffd16f2">setValueSize</a>). Which plot coordinates these cells correspond to can be configured with <a class="el" href="class_q_c_p_color_map_data.html#aad9c1c7c703c1339489fc730517c83d4">setRange</a> (or <a class="el" href="class_q_c_p_color_map_data.html#a0738c485f3c9df9ea1241b7a8bb6a86e">setKeyRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#ada1b2680ba96a5f4175b6d341cf75d23">setValueRange</a>).</p>
<p>The data cells can be accessed in two ways: They can be directly addressed by an integer index with <a class="el" href="class_q_c_p_color_map_data.html#a8e75eaf8746596319032a93f3d2d0683">setCell</a>. This is the fastest method. Alternatively, they can be addressed by their plot coordinate with <a class="el" href="class_q_c_p_color_map_data.html#afd2083ccfd6987ec94aa7ef8e91ca39a">setData</a>. plot coordinate to cell index transformations and vice versa are provided by the functions <a class="el" href="class_q_c_p_color_map_data.html#aca5b29e0ca2f299c9060fc6e1f74d0c8">coordToCell</a> and <a class="el" href="class_q_c_p_color_map_data.html#af1a36385c78ab624cd617065602408b6">cellToCoord</a>.</p>
<p>This class also buffers the minimum and maximum values that are in the data set, to provide <a class="el" href="class_q_c_p_color_map.html#a856608fa3dd1cc290bcd5f29a5575774">QCPColorMap::rescaleDataRange</a> with the necessary information quickly. Setting a cell to a value that is greater than the current maximum increases this maximum to the new value. However, setting the cell that currently holds the maximum value to a smaller value doesn't decrease the maximum again, because finding the true new maximum would require going through the entire data array, which might be time consuming. The same holds for the data minimum. This functionality is given by <a class="el" href="class_q_c_p_color_map_data.html#ab235ade8a4d64bd3adb26a99b3dd57ee">recalculateDataBounds</a>, such that you can decide when it is sensible to find the true current minimum and maximum. The method <a class="el" href="class_q_c_p_color_map.html#a856608fa3dd1cc290bcd5f29a5575774">QCPColorMap::rescaleDataRange</a> offers a convenience parameter <em>recalculateDataBounds</em> which may be set to true to automatically call <a class="el" href="class_q_c_p_color_map_data.html#ab235ade8a4d64bd3adb26a99b3dd57ee">recalculateDataBounds</a> internally. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aac9d8eb81e18e240d89d56c01933fd23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac9d8eb81e18e240d89d56c01933fd23">&#9670;&nbsp;</a></span>QCPColorMapData() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QCPColorMapData::QCPColorMapData </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>keySize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>valueSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
          <td class="paramname"><em>keyRange</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
          <td class="paramname"><em>valueRange</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs a new <a class="el" href="class_q_c_p_color_map_data.html" title="Holds the two-dimensional data of a QCPColorMap plottable. ">QCPColorMapData</a> instance. The instance has <em>keySize</em> cells in the key direction and <em>valueSize</em> cells in the value direction. These cells will be displayed by the <a class="el" href="class_q_c_p_color_map.html">QCPColorMap</a> at the coordinates <em>keyRange</em> and <em>valueRange</em>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a>, <a class="el" href="class_q_c_p_color_map_data.html#ac7ef70e383aface34b44dbde49234b6b">setKeySize</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0893c9e3914513048b45e3429ffd16f2">setValueSize</a>, <a class="el" href="class_q_c_p_color_map_data.html#aad9c1c7c703c1339489fc730517c83d4">setRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0738c485f3c9df9ea1241b7a8bb6a86e">setKeyRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#ada1b2680ba96a5f4175b6d341cf75d23">setValueRange</a> </dd></dl>

</div>
</div>
<a id="a7f2145d86473263494abb9bf1de20436"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f2145d86473263494abb9bf1de20436">&#9670;&nbsp;</a></span>QCPColorMapData() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QCPColorMapData::QCPColorMapData </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_q_c_p_color_map_data.html">QCPColorMapData</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs a new <a class="el" href="class_q_c_p_color_map_data.html" title="Holds the two-dimensional data of a QCPColorMap plottable. ">QCPColorMapData</a> instance copying the data and range of <em>other</em>. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af1a36385c78ab624cd617065602408b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1a36385c78ab624cd617065602408b6">&#9670;&nbsp;</a></span>cellToCoord()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::cellToCoord </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>keyIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>valueIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Transforms cell indices given by <em>keyIndex</em> and <em>valueIndex</em> to cell indices of this <a class="el" href="class_q_c_p_color_map_data.html" title="Holds the two-dimensional data of a QCPColorMap plottable. ">QCPColorMapData</a> instance. The resulting coordinates are returned via the output parameters <em>key</em> and <em>value</em>.</p>
<p>If you are only interested in a key or value coordinate, you may pass 0 as <em>key</em> or <em>value</em>.</p>
<dl class="section note"><dt>Note</dt><dd>The <a class="el" href="class_q_c_p_color_map.html" title="A plottable representing a two-dimensional color map in a plot. ">QCPColorMap</a> always displays the data at equal key/value intervals, even if the key or value axis is set to a logarithmic scaling. If you want to use <a class="el" href="class_q_c_p_color_map.html" title="A plottable representing a two-dimensional color map in a plot. ">QCPColorMap</a> with logarithmic axes, you shouldn't use the <a class="el" href="class_q_c_p_color_map_data.html#af1a36385c78ab624cd617065602408b6">QCPColorMapData::cellToCoord</a> method as it uses a linear transformation to determine the cell index.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#aca5b29e0ca2f299c9060fc6e1f74d0c8">coordToCell</a>, <a class="el" href="class_q_c_p_axis.html#a536ef8f624cac59b6b6fdcb495723c57">QCPAxis::pixelToCoord</a> </dd></dl>

</div>
</div>
<a id="a9910ba830e96955bd5c8e5bef1e77ef3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9910ba830e96955bd5c8e5bef1e77ef3">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Frees the internal data memory.</p>
<p>This is equivalent to calling <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize(0, 0)</a>. </p>

</div>
</div>
<a id="aca5b29e0ca2f299c9060fc6e1f74d0c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca5b29e0ca2f299c9060fc6e1f74d0c8">&#9670;&nbsp;</a></span>coordToCell()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::coordToCell </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>keyIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>valueIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Transforms plot coordinates given by <em>key</em> and <em>value</em> to cell indices of this <a class="el" href="class_q_c_p_color_map_data.html" title="Holds the two-dimensional data of a QCPColorMap plottable. ">QCPColorMapData</a> instance. The resulting cell indices are returned via the output parameters <em>keyIndex</em> and <em>valueIndex</em>.</p>
<p>The retrieved key/value cell indices can then be used for example with <a class="el" href="class_q_c_p_color_map_data.html#a8e75eaf8746596319032a93f3d2d0683">setCell</a>.</p>
<p>If you are only interested in a key or value index, you may pass 0 as <em>valueIndex</em> or <em>keyIndex</em>.</p>
<dl class="section note"><dt>Note</dt><dd>The <a class="el" href="class_q_c_p_color_map.html" title="A plottable representing a two-dimensional color map in a plot. ">QCPColorMap</a> always displays the data at equal key/value intervals, even if the key or value axis is set to a logarithmic scaling. If you want to use <a class="el" href="class_q_c_p_color_map.html" title="A plottable representing a two-dimensional color map in a plot. ">QCPColorMap</a> with logarithmic axes, you shouldn't use the <a class="el" href="class_q_c_p_color_map_data.html#aca5b29e0ca2f299c9060fc6e1f74d0c8">QCPColorMapData::coordToCell</a> method as it uses a linear transformation to determine the cell index.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#af1a36385c78ab624cd617065602408b6">cellToCoord</a>, <a class="el" href="class_q_c_p_axis.html#af15d1b3a7f7e9b53d759d3ccff1fe4b4">QCPAxis::coordToPixel</a> </dd></dl>

</div>
</div>
<a id="a350f783260eb9b5de5c7b5e0d5d3e3c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a350f783260eb9b5de5c7b5e0d5d3e3c2">&#9670;&nbsp;</a></span>fill()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::fill </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>z</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets all cells to the value <em>z</em>. </p>

</div>
</div>
<a id="aea88cc75a76ca571acf29b2ba8ac970d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea88cc75a76ca571acf29b2ba8ac970d">&#9670;&nbsp;</a></span>isEmpty()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QCPColorMapData::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns whether this instance carries no data. This is equivalent to having a size where at least one of the dimensions is 0 (see <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a>). </p>

</div>
</div>
<a id="afdf4dd1b2f5714234fe84709b85c2a8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdf4dd1b2f5714234fe84709b85c2a8d">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_q_c_p_color_map_data.html">QCPColorMapData</a> &amp; QCPColorMapData::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_q_c_p_color_map_data.html">QCPColorMapData</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Overwrites this color map data instance with the data stored in <em>other</em>. </p>

</div>
</div>
<a id="ab235ade8a4d64bd3adb26a99b3dd57ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab235ade8a4d64bd3adb26a99b3dd57ee">&#9670;&nbsp;</a></span>recalculateDataBounds()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::recalculateDataBounds </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Goes through the data and updates the buffered minimum and maximum data values.</p>
<p>Calling this method is only advised if you are about to call <a class="el" href="class_q_c_p_color_map.html#a856608fa3dd1cc290bcd5f29a5575774">QCPColorMap::rescaleDataRange</a> and can not guarantee that the cells holding the maximum or minimum data haven't been overwritten with a smaller or larger value respectively, since the buffered maximum/minimum values have been updated the last time. Why this is the case is explained in the class description (<a class="el" href="class_q_c_p_color_map_data.html">QCPColorMapData</a>).</p>
<p>Note that the method <a class="el" href="class_q_c_p_color_map.html#a856608fa3dd1cc290bcd5f29a5575774">QCPColorMap::rescaleDataRange</a> provides a parameter <em>recalculateDataBounds</em> for convenience. Setting this to true will call this method for you, before doing the rescale. </p>

</div>
</div>
<a id="a8e75eaf8746596319032a93f3d2d0683"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e75eaf8746596319032a93f3d2d0683">&#9670;&nbsp;</a></span>setCell()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::setCell </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>keyIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>valueIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>z</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the data of the cell with indices <em>keyIndex</em> and <em>valueIndex</em> to <em>z</em>. The indices enumerate the cells starting from zero, up to the map's size-1 in the respective dimension (see <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a>).</p>
<p>In the standard plot configuration (horizontal key axis and vertical value axis, both not range-reversed), the cell with indices (0, 0) is in the bottom left corner and the cell with indices (keySize-1, valueSize-1) is in the top right corner of the color map.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#afd2083ccfd6987ec94aa7ef8e91ca39a">setData</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a> </dd></dl>

</div>
</div>
<a id="afd2083ccfd6987ec94aa7ef8e91ca39a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd2083ccfd6987ec94aa7ef8e91ca39a">&#9670;&nbsp;</a></span>setData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::setData </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>z</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the data of the cell, which lies at the plot coordinates given by <em>key</em> and <em>value</em>, to <em>z</em>.</p>
<dl class="section note"><dt>Note</dt><dd>The <a class="el" href="class_q_c_p_color_map.html" title="A plottable representing a two-dimensional color map in a plot. ">QCPColorMap</a> always displays the data at equal key/value intervals, even if the key or value axis is set to a logarithmic scaling. If you want to use <a class="el" href="class_q_c_p_color_map.html" title="A plottable representing a two-dimensional color map in a plot. ">QCPColorMap</a> with logarithmic axes, you shouldn't use the <a class="el" href="class_q_c_p_color_map_data.html#afd2083ccfd6987ec94aa7ef8e91ca39a">QCPColorMapData::setData</a> method as it uses a linear transformation to determine the cell index. Rather directly access the cell index with <a class="el" href="class_q_c_p_color_map_data.html#a8e75eaf8746596319032a93f3d2d0683">QCPColorMapData::setCell</a>.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#a8e75eaf8746596319032a93f3d2d0683">setCell</a>, <a class="el" href="class_q_c_p_color_map_data.html#aad9c1c7c703c1339489fc730517c83d4">setRange</a> </dd></dl>

</div>
</div>
<a id="a0738c485f3c9df9ea1241b7a8bb6a86e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0738c485f3c9df9ea1241b7a8bb6a86e">&#9670;&nbsp;</a></span>setKeyRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::setKeyRange </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
          <td class="paramname"><em>keyRange</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the coordinate range the data shall be distributed over in the key dimension. Together with the value range, This defines the rectangular area covered by the color map in plot coordinates.</p>
<p>The outer cells will be centered on the range boundaries given to this function. For example, if the key size (<a class="el" href="class_q_c_p_color_map_data.html#ac7ef70e383aface34b44dbde49234b6b">setKeySize</a>) is 3 and <em>keyRange</em> is set to <code><a class="el" href="class_q_c_p_range.html" title="Represents the range an axis is encompassing. ">QCPRange(2, 3)</a></code> there will be cells centered on the key coordinates 2, 2.5 and 3.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#aad9c1c7c703c1339489fc730517c83d4">setRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#ada1b2680ba96a5f4175b6d341cf75d23">setValueRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a> </dd></dl>

</div>
</div>
<a id="ac7ef70e383aface34b44dbde49234b6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7ef70e383aface34b44dbde49234b6b">&#9670;&nbsp;</a></span>setKeySize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::setKeySize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>keySize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Resizes the data array to have <em>keySize</em> cells in the key dimension.</p>
<p>The current data is discarded and the map cells are set to 0, unless the map had already the requested size.</p>
<p>Setting <em>keySize</em> to zero frees the internal data array and <a class="el" href="class_q_c_p_color_map_data.html#aea88cc75a76ca571acf29b2ba8ac970d">isEmpty</a> returns true.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#a0738c485f3c9df9ea1241b7a8bb6a86e">setKeyRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0893c9e3914513048b45e3429ffd16f2">setValueSize</a> </dd></dl>

</div>
</div>
<a id="aad9c1c7c703c1339489fc730517c83d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad9c1c7c703c1339489fc730517c83d4">&#9670;&nbsp;</a></span>setRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::setRange </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
          <td class="paramname"><em>keyRange</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
          <td class="paramname"><em>valueRange</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the coordinate ranges the data shall be distributed over. This defines the rectangular area covered by the color map in plot coordinates.</p>
<p>The outer cells will be centered on the range boundaries given to this function. For example, if the key size (<a class="el" href="class_q_c_p_color_map_data.html#ac7ef70e383aface34b44dbde49234b6b">setKeySize</a>) is 3 and <em>keyRange</em> is set to <code><a class="el" href="class_q_c_p_range.html" title="Represents the range an axis is encompassing. ">QCPRange(2, 3)</a></code> there will be cells centered on the key coordinates 2, 2.5 and 3.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a> </dd></dl>

</div>
</div>
<a id="a0d9ff35c299d0478b682bfbcdd9c097e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d9ff35c299d0478b682bfbcdd9c097e">&#9670;&nbsp;</a></span>setSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::setSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>keySize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>valueSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Resizes the data array to have <em>keySize</em> cells in the key dimension and <em>valueSize</em> cells in the value dimension.</p>
<p>The current data is discarded and the map cells are set to 0, unless the map had already the requested size.</p>
<p>Setting at least one of <em>keySize</em> or <em>valueSize</em> to zero frees the internal data array and <a class="el" href="class_q_c_p_color_map_data.html#aea88cc75a76ca571acf29b2ba8ac970d">isEmpty</a> returns true.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#aad9c1c7c703c1339489fc730517c83d4">setRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#ac7ef70e383aface34b44dbde49234b6b">setKeySize</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0893c9e3914513048b45e3429ffd16f2">setValueSize</a> </dd></dl>

</div>
</div>
<a id="ada1b2680ba96a5f4175b6d341cf75d23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada1b2680ba96a5f4175b6d341cf75d23">&#9670;&nbsp;</a></span>setValueRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::setValueRange </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_q_c_p_range.html">QCPRange</a> &amp;&#160;</td>
          <td class="paramname"><em>valueRange</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the coordinate range the data shall be distributed over in the value dimension. Together with the key range, This defines the rectangular area covered by the color map in plot coordinates.</p>
<p>The outer cells will be centered on the range boundaries given to this function. For example, if the value size (<a class="el" href="class_q_c_p_color_map_data.html#a0893c9e3914513048b45e3429ffd16f2">setValueSize</a>) is 3 and <em>valueRange</em> is set to <code><a class="el" href="class_q_c_p_range.html" title="Represents the range an axis is encompassing. ">QCPRange(2, 3)</a></code> there will be cells centered on the value coordinates 2, 2.5 and 3.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#aad9c1c7c703c1339489fc730517c83d4">setRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0738c485f3c9df9ea1241b7a8bb6a86e">setKeyRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a> </dd></dl>

</div>
</div>
<a id="a0893c9e3914513048b45e3429ffd16f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0893c9e3914513048b45e3429ffd16f2">&#9670;&nbsp;</a></span>setValueSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QCPColorMapData::setValueSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>valueSize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Resizes the data array to have <em>valueSize</em> cells in the value dimension.</p>
<p>The current data is discarded and the map cells are set to 0, unless the map had already the requested size.</p>
<p>Setting <em>valueSize</em> to zero frees the internal data array and <a class="el" href="class_q_c_p_color_map_data.html#aea88cc75a76ca571acf29b2ba8ac970d">isEmpty</a> returns true.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_q_c_p_color_map_data.html#ada1b2680ba96a5f4175b6d341cf75d23">setValueRange</a>, <a class="el" href="class_q_c_p_color_map_data.html#a0d9ff35c299d0478b682bfbcdd9c097e">setSize</a>, <a class="el" href="class_q_c_p_color_map_data.html#ac7ef70e383aface34b44dbde49234b6b">setKeySize</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/charts/qcustomplot/<a class="el" href="qcustomplot_8h_source.html">qcustomplot.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/charts/qcustomplot/<a class="el" href="qcustomplot_8cpp.html">qcustomplot.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
